package com.crazyzoo.passerby;

import com.crazyzoo.Jelly.Sheep;
import com.crazyzoo.Jiuly.Chicken;
import com.crazyzoo.Lin.Seastar;
import com.crazyzoo.Lue.WinnieThePooh;
import com.crazyzoo.Zhong.BigDog;


import java.util.Scanner;

public class CrazyZoo
{
    public static void main(String[] args)
    {

        System.out.println("1-----------------------------------1");
        System.out.println("1\t\t欢迎来到CrazyZoo!!\t\t\t1");
        System.out.println("1\t\t以下为我们的动物种类\t\t\t1");
        System.out.println("1\t\t\t1.沸羊羊\t\t\t\t\t1");
        System.out.println("1\t\t\t2.派大星\t\t\t\t\t1");
        System.out.println("1\t\t\t3.小飞鸡\t\t\t\t\t1");
        System.out.println("1\t\t\t4.小熊维尼\t\t\t\t1");
        System.out.println("1\t\t\t5.大狗\t\t\t\t\t1");
        System.out.println("1\t\t\t0.退出\t\t\t\t\t1");
        System.out.println("1-----------------------------------1");

        System.out.println("请输入你想要查看的‘动物’详情序号：");
        Scanner sc = new Scanner(System.in);

        while(true) {
            int  id= sc.nextInt();
            if(id == 0){
                System.out.println("你已退出查看系统！");
                break;
            }
            switch (id) {
                case 1:
                    Sheep FeiYangYang = new Sheep();
                    FeiYangYang.setId("20220388");
                    FeiYangYang.setName("沸羊羊");
                    FeiYangYang.setFriend("灰太狼");
                    FeiYangYang.setEnemy("喜羊羊");
                    FeiYangYang.setLover("美羊羊");
                    System.out.println(FeiYangYang);
                    FeiYangYang.speak();
                    System.out.println("-------------------------------------\n");
                    break;

                case 2:
                    Seastar PaiDaStar = new Seastar();
                    PaiDaStar.setId("20220353");
                    PaiDaStar.setClothing("绿色沙滩裤");
                    PaiDaStar.setName("派大星");
                    PaiDaStar.setColor("粉红色");
                    PaiDaStar.setHabitat("比奇堡海滩的石头下");
                    System.out.println(PaiDaStar);
                    PaiDaStar.speak();
                    System.out.println("-------------------------------------\n");
                    break;

                case 3:
                    Chicken XiaoFeiJi = new Chicken();
                    XiaoFeiJi.setId("20220368");
                    XiaoFeiJi.setName("小飞鸡（鸡小飞、极速小飞鸡）");
                    XiaoFeiJi.setColour("青绿色");
                    XiaoFeiJi.setAbility("可飞行，可变身为肌肉鸡,可回血");
                    XiaoFeiJi.setHabitat("小鸡岛");
                    System.out.println(XiaoFeiJi);
                    XiaoFeiJi.relation();
                    XiaoFeiJi.economic();
                    XiaoFeiJi.other();
                    System.out.println("-------------------------------------\n");
                    break;

                case 4:
                    WinnieThePooh XiaoXiongWinnie=new WinnieThePooh();
                    XiaoXiongWinnie.setId("20220387");
                    XiaoXiongWinnie.setColour("黄色");
                    XiaoXiongWinnie.setName("小熊维尼");
                    XiaoXiongWinnie.setFavoriteFood("蜂蜜...再多一点蜂蜜");
                    XiaoXiongWinnie.setHabitat("百亩森林");
                    XiaoXiongWinnie.setFriend("小猪,跳跳虎");
                    XiaoXiongWinnie.setPetPhrase("Think, think, think...");
                    System.out.println(XiaoXiongWinnie);
                    XiaoXiongWinnie.speak();
                    System.out.println("-------------------------------------\n");
                    break;

                case 5:
                    BigDog wangwang =new BigDog();
                    wangwang.setEatinghabit("骨头");
                    wangwang.setColor("白色");
                    wangwang.setId("20220355");
                    wangwang.setSounds("汪汪");
                    wangwang.setName("大狗");
                    System.out.println(wangwang);
                    System.out.println("-------------------------------------\n");
                    break;
                default:
                    break;
            }
            System.out.println("请再次输入你想要查看的‘动物’详情的ID：");
        }

    }
}